package com.ruoyi.yl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.domain.Orders;
import com.ruoyi.common.domain.dto.CommentDto;
import com.ruoyi.common.domain.dto.OrderDTO;

import java.util.List;

/**
 * <p>
 * 订单表，存储用户参与霸王餐活动的订单信息 服务类
 * </p>
 *
 * @author jiabao
 * @since 2025-06-25
 */
public interface IOrdersService extends IService<Orders> {

    /**
     * 校验该用户是否已经参加啦该活动
     * @param activityId
     */
    void verificationActivityParticipate(Long activityId);

    /**
     * 订单创建
     */
    Orders create(Long activityId, Long merchantId, String orderNo);


    List<OrderDTO> selectOrderList(String currentStatus);


    Orders selectOrdersByActivityId(Long activityId);


    Orders selectOrdersByOrderNo(String orderNo);


    CommentDto getCommentInfoByOderNo(String orderNo);

    /**
     * 通过订单号修改状态
     * @param orderNo
     * @param currentType
     */
    void updateOrderCurrentStatusByOrderNo(String orderNo, Orders.CURRENT_TYPE currentType);

    Orders selectByOrderNo(String orderNo);
}
